home *** CD-ROM | disk | FTP | other *** search
/ C++ für Kids / C++ for kids.iso / Buch / Hallo2a.cpp < prev    next >
C/C++ Source or Header  |  1998-12-27  |  1KB  |  34 lines

  1. //---------------------------------------------------------------------------
  2. #include <vcl\vcl.h>
  3. #pragma hdrstop
  4.  
  5. #include "Hallo2a.h"
  6. //---------------------------------------------------------------------------
  7. #pragma resource "*.dfm"
  8. TForm1 *Form1;
  9. //---------------------------------------------------------------------------
  10. __fastcall TForm1::TForm1(TComponent* Owner)
  11.     : TForm(Owner)
  12. {
  13. }
  14. //---------------------------------------------------------------------------
  15. void __fastcall TForm1::Button1Click(TObject *Sender)
  16. {
  17.   Application->MessageBox ("Das freut mich!", "", 4+48);
  18. }
  19. //---------------------------------------------------------------------------
  20. void __fastcall TForm1::Button2Click(TObject *Sender)
  21. {
  22.   Application->MessageBox ("Das tut mir leid!", "", 1+32);
  23. }
  24. //---------------------------------------------------------------------------
  25. void __fastcall TForm1::Button3Click(TObject *Sender)
  26. {
  27.   Application->MessageBox ("Das geht ja ...", "", 0+64);
  28. }
  29. //---------------------------------------------------------------------------
  30. void __fastcall TForm1::Button4Click(TObject *Sender)
  31. {
  32.   Application->MessageBox ("Ich auch nicht.", "", 0+16);
  33. }
  34. //---------------------------------------------------------------------------